DeriveGamemode( "sandbox" )
include("shared.lua" )
include("hud.lua")
include("bs_menu.lua")




function terminal()
	local frame = vgui.Create("DFrame")
	frame:SetPos(50,50)
	frame:SetSize(810,540)
	frame:SetTitle("Welcome to Beyond Space! :D")
	frame:SetVisible(true)
	frame:SetDraggable(true)
	frame:ShowCloseButton(true)
	frame:SetMouseInputEnabled(true)
	frame:SetKeyboardInputEnabled(true)
	frame:MakePopup()
	
	local terminalSheet = vgui.Create("DPropertySheet")
	terminalSheet:SetParent(frame)
	terminalSheet:SetPos(5,30)
	terminalSheet:SetSize(800,500)
	
	local resourcemenu = vgui.Create("DListView")
	resourcemenu:SetParent(terminalSheet)
	resourcemenu:SetPos(0,10)
	resourcemenu:SetSize(800,490)
	resourcemenu:SetMultiSelect(true)
	resourcemenu:AddColumn("Resource")
	resourcemenu:AddColumn("Amount")
	
	for k,v in pairs(player.GetAll()) do
    resourcemenu:AddLine(v:Nick(),v:Frags()) -- Add lines
	end

	local scorepage = vgui.Create("DListView")
	scorepage:SetParent(terminalSheet)
	scorepage:SetPos(0,10)
	scorepage:SetSize(800,490)
	scorepage:SetMultiSelect(true)
	scorepage:AddColumn("Name")
	scorepage:AddColumn("Score")
	
	for k,v in pairs(player.GetAll()) do
		scorepage:AddLine(v:Nick(),v:Frags())
	end
	
	terminalSheet:AddSheet("Score", scorepage, "gui/silkicons/user", false, false, "Player Scores, How Rich are You?")
	terminalSheet:AddSheet("Resource Management", resourcemenu, "gui/silkicons/group", false, false, "Manage Yo Shit.")
end

concommand.Add("godmode"
concommand.Add("terminal",terminal )